/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-31 20:15:54
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-31 20:16:06
 * @FilePath: \Gitee实训笔记\day14\HomeWork\Test02\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day14.HomeWork.Test02;

public class Test {
 public static void main(String[] args) {
        Duration d = new Duration(1, 1, 1);
        int totalSeconds = d.getTotalSeconds();
        System.out.println("totalSeconds = " + totalSeconds);
        // 输出 totalSeconds = 3661

        Duration d2 = new Duration(3660);
        int hours = d2.getHours();
        System.out.println("hours = " + hours);
        // 输出 hours = 1

        System.out.println(d2);
        // 输出 1:1:0
    }
}
